package cn.edu.ujn.lab3.dao;

import java.util.List;

import cn.edu.ujn.lab3.dao.Customer;

public interface CustomerMapper {
	int deleteByPrimaryKey(Integer custId);

	int insert(Customer record);

	int insertSelective(Customer record);

	Customer selectByPrimaryKey(Integer custId);

	int updateByPrimaryKeySelective(Customer record);

//	int updateByPrimaryKey(Customer record);

	List<Customer> selectCustomerList(Customer customer);// 查询客户列表

	Integer selectCustomerListCount(Customer customer);// 查询客户总数

	public int createCustomer(Customer customer);// 添加客户

	// 更新客户信息
	public int updateCustomer(Customer customer);

	public Customer getCustomerById(Integer id);// 通过id查询客户

	int deleteCustomer(Integer id);// 通过id删除客户
}
